<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>PokeS</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">PokeS()</font></b></p>
<p><b>语法</b></p><blockquote>

Result = <font color="#006666"><b>PokeS</b></font>(*MemoryBuffer, Text$ [, Length [, Flags]])</blockquote>

</blockquote>
<b>概要</b><br><blockquote>



Writes a string to the specified memory address, followed by a null-character for termination. 

 

</blockquote><p><b>参数</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>*MemoryBuffer</i></td>
<td width="90%"> 
 
The address to write to. 

 

</td></tr>
<tr><td><i>Text$</i></td>
<td> 
 
The string to write. 

 

</td></tr>
<tr><td><i>Length (optional)</i></td>
<td> 
 
The maximum number of characters to write. If this parameter is not specified or -1 is used then 
the full length is written. 
The terminating null-character that is always written (unless the <font color="#924B72">#PB_String_NoZero</font> flag is set) is not included in this count. 

 

</td></tr>
<tr><td><i>Flags (optional)</i></td>
<td> 
 
The string format to use when writing the string. This can be one of the following values: 
 
<pre><font face="Courier New, Courier, mono"size="2">  <font color="#924B72">#PB_Ascii</font>  : Writes the strings in ascii (default in ascii mode)
  <font color="#924B72">#PB_UTF8</font>   : Writes the strings in UTF8
  <font color="#924B72">#PB_Unicode</font>: Writes the strings in unicode (default in <a href="../reference/unicode.html">unicode</a> mode)
</font></pre>

It can be combined with the following constants: 
 
<pre><font face="Courier New, Courier, mono"size="2">  <font color="#924B72">#PB_String_NoZero</font>: Doesn't write the terminating null-character.
</font></pre>

</td></tr>
</table>
</blockquote><p><b>返回值</b></p><blockquote>



The amount of bytes written to memory, not including the terminating null-character. 
The amount of written bytes differs from the string length in characters if the format is 
<font color="#924B72">#PB_UTF8</font> or <font color="#924B72">#PB_Unicode</font>. 

 

</blockquote><p><b>参阅</b></p><blockquote>

<a href="peeks.html">PeekS()</a>, <a href="copymemorystring.html">CopyMemoryString()</a> 

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center>&lt;- <a href=pokeq.html>PokeQ()</a> - <a href=index.html>Memory Index</a> - <a href=pokeu.html>PokeU()</a> -&gt;



</body></html>